import {
  CacheManager
} from './cache_manager/CacheManager';
import {
  FileManager
} from './file_manager/FileManager';
import {
  LogManager
} from './01-LogManager/Logger_B/LogManager';
import {
  Context
} from '@ohos.abilityAccessCtrl';
import {
  initResourceManager
} from './12-ResourceManager/ResourceManager';

export class CoffeeSdk {
  static context: Context;

  /**
   * 将sdk中所有需要初始化的组件统一进行初始化操作.
   * @param context
   */
  static initSdk(context: Context, defaultLogDir?: string) {
    CoffeeSdk.context = context;
    initResourceManager(context);
    CacheManager.initClass(context);
    FileManager.initClass(context);
    LogManager.initClass(context, defaultLogDir);
  }
}

/**
 * 如何把一个库的类都放在ga这个命名空间里面?
 */
declare namespace ga {

}